/**
 * 接收两个参数，第一个参数state，第二个参数action
 */
import _ from 'lodash'

const initstate = {
    value: 10
}

export const redurce = (state = initstate, action) => {
    const { type } = action
    switch (type) {
        case 'add_action':
            return {
                value: state.value + 1
            }
        default:
            return state
    }
}